package com.g1.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {

  @TableId(value = "studentId",type = IdType.AUTO)
  private Long studentId;
  @TableField("studentName")
  private String studentName;
  @TableField("gender")
  private String gender;
  @TableField("classNumber")
  private Long classNumber;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField("birthday")
  private Date birthday;
  @TableField("age")
  private Long age;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField("enrollmentdate")
  private Date enrollmentdate;
  @TableField("healthStatus")
  private String healthStatus;
  @TableField("homePhone")
  private String homePhone;
  @TableField("homeAddress")
  private String homeAddress;
  @TableField("fatherName")
  private String fatherName;
  @TableField("fatherPhone")
  private String fatherPhone;
  @TableField("fatherUnit")
  private String fatherUnit;
  @TableField("motherName")
  private String motherName;
  @TableField("motherPhone")
  private String motherPhone;
  @TableField("motherUnit")
  private String motherUnit;

  public Long getStudentId() {
    return studentId;
  }

  public void setStudentId(Long studentId) {
    this.studentId = studentId;
  }

  public String getStudentName() {
    return studentName;
  }

  public void setStudentName(String studentName) {
    this.studentName = studentName;
  }

  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }

  public Long getClassNumber() {
    return classNumber;
  }

  public void setClassNumber(Long classNumber) {
    this.classNumber = classNumber;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }

  public Long getAge() {
    return age;
  }

  public void setAge(Long age) {
    this.age = age;
  }

  public Date getEnrollmentdate() {
    return enrollmentdate;
  }

  public void setEnrollmentdate(Date enrollmentdate) {
    this.enrollmentdate = enrollmentdate;
  }

  public String getHealthStatus() {
    return healthStatus;
  }

  public void setHealthStatus(String healthStatus) {
    this.healthStatus = healthStatus;
  }

  public String getHomePhone() {
    return homePhone;
  }

  public void setHomePhone(String homePhone) {
    this.homePhone = homePhone;
  }

  public String getHomeAddress() {
    return homeAddress;
  }

  public void setHomeAddress(String homeAddress) {
    this.homeAddress = homeAddress;
  }

  public String getFatherName() {
    return fatherName;
  }

  public void setFatherName(String fatherName) {
    this.fatherName = fatherName;
  }

  public String getFatherPhone() {
    return fatherPhone;
  }

  public void setFatherPhone(String fatherPhone) {
    this.fatherPhone = fatherPhone;
  }

  public String getFatherUnit() {
    return fatherUnit;
  }

  public void setFatherUnit(String fatherUnit) {
    this.fatherUnit = fatherUnit;
  }

  public String getMotherName() {
    return motherName;
  }

  public void setMotherName(String motherName) {
    this.motherName = motherName;
  }

  public String getMotherPhone() {
    return motherPhone;
  }

  public void setMotherPhone(String motherPhone) {
    this.motherPhone = motherPhone;
  }

  public String getMotherUnit() {
    return motherUnit;
  }

  public void setMotherUnit(String motherUnit) {
    this.motherUnit = motherUnit;
  }

  @Override
  public String toString() {
    return "Student{" +
            "studentId=" + studentId +
            ", studentName='" + studentName + '\'' +
            ", gender='" + gender + '\'' +
            ", classNumber=" + classNumber +
            ", birthday=" + birthday +
            ", age=" + age +
            ", enrollmentdate=" + enrollmentdate +
            ", healthStatus='" + healthStatus + '\'' +
            ", homePhone='" + homePhone + '\'' +
            ", homeAddress='" + homeAddress + '\'' +
            ", fatherName='" + fatherName + '\'' +
            ", fatherPhone='" + fatherPhone + '\'' +
            ", fatherUnit='" + fatherUnit + '\'' +
            ", motherName='" + motherName + '\'' +
            ", motherPhone='" + motherPhone + '\'' +
            ", motherUnit='" + motherUnit + '\'' +
            '}';
  }
}
